package com.hq.zb.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.hq.zb.model.CodeLine;
import com.hq.zb.vo.CodeLineVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 数据字典行表 Mapper 接口
 * </p>
 *
 * @author huanghanrui
 * @since 2022-03-09
 */
@Mapper
public interface CodeLineMapper extends BaseMapper<CodeLine> {

    /**
     * 分页查询
     * @param page
     * @param wrapper
     * @return
     */
    List<CodeLineVo> queryCode(Pagination page, @Param("ew") Wrapper<CodeLineVo> wrapper);

    /**
     * 跟进数据字典编码查询
     * @param code
     * @return
     */
    List<CodeLineVo> selectCodeLineByCode(@Param("code") String code);
}
